<layout name='layout' />

<div class="admin-main">

	<blockquote class="layui-elem-quote">

		<button class="layui-btn layui-btn-small layui-btn-danger" id="delBtn">
			<i class="fa fa-close"></i> 删除
		</button>

		<div class="search">
			<form class="layui-form" method="post" action="<{:U('Feedback/index')}>">
			<div class="layui-input-inline">
			<select name="cid" id="cid">
				<option value="0">全部</option>
				<volist name="cate" id="vo">
				<option value='<{$vo['id']}>'><{$vo['name']}></option>
				</volist>
			</select>
			</div>
			<div class="layui-input-inline">
			<input type="text" name="keyword" class="layui-input layui-btn-small">
			</div>
			<button type="submit" class="layui-btn" lay-submit=""><i class="layui-icon">&#xe615;</i> 搜索</button>
			<a href="<{:U('Feedback/index')}>" class="layui-btn layui-btn-primary">重置</a>
			</form>
		</div>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>数据列表</legend>
		<div class="layui-field-box">
			<form id="ajaxForm" method="post" action="<{:U('Feedback/del')}>">
			<table class="site-table table-hover">
				<thead>
					<tr>
						<th><input type="checkbox" id="selected-all"></th>	
						<th>姓名</th>
						<th>电话</th>
						<th>邮箱</th>
						<th>问题分类</th>
						<th>回复</th>
						<th>公开</th>
						<th>提交日期</th> 
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr>
						<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>"></td>
						<td><{$vo.name}></td>
						<td><{$vo.mobile}></td>
						<td><{$vo.email}></td>
						<td><a href="<{:U('Feedback/index',array('path'=>$vo['path']))}>"><{$cateArr[$vo['cid']]}></a></td>
						<td><empty name="vo.reply"><font color="red">未回复</font><else/>已回复</empty></td>
						<td><eq name="vo.open" value="0"><font color="red">隐藏</font><else/>公开</eq></td>
						<td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>						
						<td>
							<a href="<{:U('Feedback/reply' , array('id'=>$vo['id']))}>" class="layui-btn layui-btn-mini">回复</a>
						</td>
					</tr>	
					</volist>						
				</tbody>
			</table>
			<input type="hidden" name="mpath" id="mpath">
			</form>
		</div>
	</fieldset>
	<div class="admin-table-page">
		<div id="page" class="page"><{$page}></div>
	</div>
</div>

<script type="text/javascript">
$("#cid").val("<{$cid}>");
</script>
		
